<template>
  <div id="app">
    <div style="width: 300px;height: 260px">
      <vue-draw
        ref="vue-draw-1"
        background="http://xiaosaas.oss-cn-beijing.aliyuncs.com/202205231837528942116622390367434"
        :config="{open: true}"
        @start="start"
        @error="error"
        @save="save"
      />
    </div>
  </div>
</template>

<script>
//http://xiaosaas.oss-cn-beijing.aliyuncs.com/202205231837528942116622390367434
//http://xiaosaas.oss-cn-beijing.aliyuncs.com/20211105142625386539163649313346
export default {
  name: 'app',
  methods: {
    error(err){
      console.log(err)
    },
    start(msg){
      console.log(msg)
    },
    save(options){
      console.log(options)
      options.callback && options.callback(true)
    }
  }
}
</script>
